import React from 'react';
import {
  HashRouter as Router,
  Route,
  Link
} from 'react-router-dom'
import home from '../components/home'
import company from '../components/company'
import tec from '../components/tec'
import about from '../components/about'

const Head = () => (
  <Router>
    <div>
      <div className="item">
        <Link to="/">首页<div className="homecss"></div></Link>
        <Link to="/company">公司简介
          <div className="homecss"></div>
        </Link>
        <Link to="/tec">产品与解决方案
          <div className="homecss"></div>
        </Link>
        <Link to="/about">联系我们
          <div className="homecss"></div>
        </Link>
      </div>

      <Route exact path='/' component={home}/>
      <Route path='/company' component={company}/>
      <Route path='/tec' component={tec}/>
      <Route path='/about' component={about}/>
    </div>
  </Router>
)



  export default Head
